#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Time: 2022/12/22 10:53
# @Author: scg
# @Email: xxx@gmail.com
# @File：clue_show_page.py

from selenium.webdriver.common.by import By
from pages.base_page import BasePage


class ProductShowPage(BasePage):
    url = '/crm/index.php?m=product'

    add_product_btn_locator = (
        By.CSS_SELECTOR, "body > div.container > div.row > div:nth-child(2) > div.pull-right > a")

    def click_add_product_btn(self):
        self.driver.find_element(*self.add_product_btn_locator).click()
